home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
4_0
/
LIFE6__
/
PROTO
/
U
/
LIFE_4A.C
< prev
next >
Wrap
Text File
|
1991-08-16
|
8KB
|
310 lines
/* Life_4a */
/* File name: Life_4a.c */
/* Function: Handle a Window */
/* History: 8/16/91 Original by Prototyper 3.0 */
#include "PCommonLife6.h" /* Common */
#include "Common_Life6.h" /* Common */
#include "PUtils_Life6.h" /* General Utilities */
#include "Utils_Life6.h" /* General Utilities */
#include "About_Life.h" /* Modal Dialog */
#include "Life_4a.h" /* This file */
/* ======================================================= */
/* ======================================================= */
/* Routine: U_Init_Life_4a */
/* Purpose: Initialize our window data to not in use yet */
void U_Init_Life_4a()
{
}
/* ======================================================= */
/* Routine: U_Close_Life_4a */
/* Purpose: Close out the window */
void U_Close_Life_4a()
{
/* Our window is WPtr_Life_4a */
} /* End of procedure */
/* ======================================================= */
/* Routine: U_Resized_Life_4a */
/* Purpose: We were resized or zoomed, update the scrolling scrollbars */
/* OldRect is the size of the window before the resize */
/* Use WPtr_Life_4a^.PortRect for the new size */
void U_Resized_Life_4a(OldRect) /* Resized this window */
Rect *OldRect;
{
/* Our window is WPtr_Life_4a */
} /* End of function */
/* ======================================================= */
/* Routine: U_Moved_Life_4a */
/* Purpose: We were moved, possibly to another screen and screen depth */
/* OldRect is the size of the window before the resize */
/* Use WPtr_Life_4a^.PortRect for the new size */
void U_Moved_Life_4a(OldRect) /* Moved this window */
Rect *OldRect;
{
/* Our window is WPtr_Life_4a */
} /* End of procedure */
/* ======================================================= */
/* Routine: U_Update_Life_4a */
/* Purpose: Update our window */
void U_Update_Life_4a()
{
/* Our window is WPtr_Life_4a */
} /* End of procedure */
/* ======================================================= */
/* Routine: U_Open_Life_4a */
/* Purpose: Open our window */
void U_Open_Life_4a()
{
if (WPtr_Life_4a != NIL) /* See if opened OK */
{
} /* End for if (MyWindow<>nil) */
} /* End of procedure */
/* ======================================================= */
/* Routine: U_Activate_Life_4a */
/* Purpose: We activated or deactivated. */
void U_Activate_Life_4a(Do_An_Activate) /* Activated or deactivated this window */
Boolean Do_An_Activate;
{
if (Do_An_Activate == TRUE) /* Handle the activate */
{
} /* End for activate */
else
{ /* Start of deactivate */
} /* End for deactivate */
} /* End of procedure */
/* ======================================================= */
/* Routine: U_DoButton_Life_4a */
/* Purpose: Handle extra buttons in our window */
/* RefCon = The RefCon of the button that was pressed */
/* theControl = The ControlHandle of the button that was pressed */
void U_DoButton_Life_4a(RefCon, theControl)
long RefCon;
ControlHandle theControl;
{ /* Handle U_DoButton_ */
switch (RefCon) /* Select correct button */
{
case Res_Ctrl_GO: /* GO, button */
break;
case Res_Ctrl_Rect_hotspot1_1: /* Rect_hotspot1_1, hotspot */
break;
case Res_Ctrl_Rect_hotspot1_2: /* Rect_hotspot1_2, hotspot */
break;
case Res_Ctrl_Rect_hotspot1_3: /* Rect_hotspot1_3, hotspot */
break;
case Res_Ctrl_Rect_hotspot1_4: /* Rect_hotspot1_4, hotspot */
break;
case Res_Ctrl_Rect_hotspot1_5: /* Rect_hotspot1_5, hotspot */
break;
case Res_Ctrl_Rect_hotspot1_6: /* Rect_hotspot1_6, hotspot */
break;
case Res_Ctrl_Rect_hotspot1_7: /* Rect_hotspot1_7, hotspot */
break;
case Res_Ctrl_Rect_hotspot1_8: /* Rect_hotspot1_8, hotspot */
break;
case Res_Ctrl_Rect_hotspot2_1: /* Rect_hotspot2_1, hotspot */
break;
case Res_Ctrl_Rect_hotspot2_2: /* Rect_hotspot2_2, hotspot */
break;
case Res_Ctrl_Rect_hotspot2_3: /* Rect_hotspot2_3, hotspot */
break;
case Res_Ctrl_Rect_hotspot2_4: /* Rect_hotspot2_4, hotspot */
break;
case Res_Ctrl_Rect_hotspot2_5: /* Rect_hotspot2_5, hotspot */
break;
case Res_Ctrl_Rect_hotspot2_6: /* Rect_hotspot2_6, hotspot */
break;
case Res_Ctrl_Rect_hotspot2_7: /* Rect_hotspot2_7, hotspot */
break;
case Res_Ctrl_Rect_hotspot2_8: /* Rect_hotspot2_8, hotspot */
break;
case Res_Ctrl_Rect_hotspot3_1: /* Rect_hotspot3_1, hotspot */
break;
case Res_Ctrl_Rect_hotspot3_2: /* Rect_hotspot3_2, hotspot */
break;
case Res_Ctrl_Rect_hotspot3_3: /* Rect_hotspot3_3, hotspot */
break;
case Res_Ctrl_Rect_hotspot3_4: /* Rect_hotspot3_4, hotspot */
break;
case Res_Ctrl_Rect_hotspot3_5: /* Rect_hotspot3_5, hotspot */
break;
case Res_Ctrl_Rect_hotspot3_6: /* Rect_hotspot3_6, hotspot */
break;
case Res_Ctrl_Rect_hotspot3_7: /* Rect_hotspot3_7, hotspot */
break;
case Res_Ctrl_Rect_hotspot3_8: /* Rect_hotspot3_8, hotspot */
break;
case Res_Ctrl_Rect_hotspot4_1: /* Rect_hotspot4_1, hotspot */
break;
case Res_Ctrl_Rect_hotspot4_2: /* Rect_hotspot4_2, hotspot */
break;
case Res_Ctrl_Rect_hotspot4_3: /* Rect_hotspot4_3, hotspot */
break;
case Res_Ctrl_Rect_hotspot4_4: /* Rect_hotspot4_4, hotspot */
break;
case Res_Ctrl_Rect_hotspot4_52: /* Rect_hotspot4_52, hotspot */
break;
case Res_Ctrl_Rect_hotspot4_6: /* Rect_hotspot4_6, hotspot */
break;
case Res_Ctrl_Rect_hotspot4_7: /* Rect_hotspot4_7, hotspot */
break;
case Res_Ctrl_Rect_hotspot4_8: /* Rect_hotspot4_8, hotspot */
break;
case Res_Ctrl_Rect_hotspot5_1: /* Rect_hotspot5_1, hotspot */
break;
case Res_Ctrl_Rect_hotspot5_2: /* Rect_hotspot5_2, hotspot */
break;
case Res_Ctrl_Rect_hotspot5_3: /* Rect_hotspot5_3, hotspot */
break;
case Res_Ctrl_Rect_hotspot5_4: /* Rect_hotspot5_4, hotspot */
break;
case Res_Ctrl_Rect_hotspot5_5: /* Rect_hotspot5_5, hotspot */
break;
case Res_Ctrl_Rect_hotspot5_6: /* Rect_hotspot5_6, hotspot */
break;
case Res_Ctrl_Rect_hotspot5_7: /* Rect_hotspot5_7, hotspot */
break;
case Res_Ctrl_Rect_hotspot5_8: /* Rect_hotspot5_8, hotspot */
break;
case Res_Ctrl_Rect_hotspot6_1: /* Rect_hotspot6_1, hotspot */
break;
case Res_Ctrl_Rect_hotspot6_2: /* Rect_hotspot6_2, hotspot */
break;
case Res_Ctrl_Rect_hotspot6_3: /* Rect_hotspot6_3, hotspot */
break;
case Res_Ctrl_Rect_hotspot6_4: /* Rect_hotspot6_4, hotspot */
break;
case Res_Ctrl_Rect_hotspot6_5: /* Rect_hotspot6_5, hotspot */
break;
case Res_Ctrl_Rect_hotspot6_6: /* Rect_hotspot6_6, hotspot */
break;
case Res_Ctrl_Rect_hotspot6_7: /* Rect_hotspot6_7, hotspot */
break;
case Res_Ctrl_Rect_hotspot6_8: /* Rect_hotspot6_8, hotspot */
break;
case 0: /* Handle an empty case */
break; /* end of 0 */
default: /* allow other buttons, trap for debug */
break; /* end of otherwise */
} /* end of switch */
} /* end of Handle U_DoButton_ */
/* ======================================================= */
/* Routine: U_DoEvent_Life_4a */
/* Purpose: Handle any special window events */
void U_DoEvent_Life_4a(myEvent)
EventRecord *myEvent;
{ /* Handle U_DoEvent_ */
} /* end of Handle U_DoEvent_ */
/* ======================================================= */